function toggleBlocks(page) {
    var block1 = document.getElementById("new1");
    var block2 = document.getElementById("new2");
    var block3 = document.getElementById("new3");
    var block4 = document.getElementById("new4");
    // var block = document.getElementsByClassName("switch_block");

    // for (var i=1; i<5; i++) {
    //     if (block[i].style.display === "none" && page === '1') {
    //         console.log("1");
    //     } else {

    //     }
    // }

    if (block1.style.display === "none" && page === '1') {
        block1.style.display = "block";
        block2.style.display = "none";
        block3.style.display = "none";
        block4.style.display = "none";
    } else if (block2.style.display === "none" && page === '2') {
        block1.style.display = "none";
        block2.style.display = "block";
        block3.style.display = "none";
        block4.style.display = "none";
    } else if (block3.style.display === "none" && page === '3') {
        block1.style.display = "none";
        block2.style.display = "none";
        block3.style.display = "block";
        block4.style.display = "none";
    } else if (block4.style.display === "none" && page === '4') {
        block1.style.display = "none";
        block2.style.display = "none";
        block3.style.display = "none";
        block4.style.display = "block";
    }
}
